package com.lunhui.user.business.utlis;

import org.apache.commons.codec.digest.DigestUtils;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author renminghe-kg
 */
public class Utils {

    public static String MD5(String pwd) {
        return DigestUtils.md5Hex(pwd);
    }

    public static String nowDate() {
        DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        return LocalDateTime.now().format(df);
    }
}